<template>
  <div>
    <vxe-number-input v-model="val1" placeholder="默认2为小数" type="float"></vxe-number-input>
    <vxe-number-input v-model="val2" placeholder="设置为4为小数" type="float" digits="4"></vxe-number-input>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'

const val1 = ref(null)
const val2 = ref(null)
</script>
